import axios from '../utils/request'

async function login(data) {
    return await axios.post("/api/login", data)
}

async function register(data) {
    return await axios.post("/api/register", data)
}

export {
    login,
    register
}